3.298 \(\int \sqrt{\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)+C \cos ^2(c+d x)) \, dx\)

Optimal. Leaf size=189 \[ \frac{b x (4 A+3 C) \sqrt{b \cos (c+d x)}}{8 \sqrt{\cos (c+d x)}}+\frac{b (4 A+3 C) \sin (c+d x) \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)}}{8 d}-\frac{b B \sin ^3(c+d x) \sqrt{b \cos (c+d x)}}{3 d \sqrt{\cos (c+d x)}}+\frac{b B \sin (c+d x) \sqrt{b \cos (c+d x)}}{d \sqrt{\cos (c+d x)}}+\frac{b C \sin (c+d x) \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)}}{4 d} \]

[Out]

(b*(4*A + 3*C)*x*Sqrt[b*Cos[c + d*x]])/(8*Sqrt[Cos[c + d*x]]) + (b*B*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(d*Sqr
t[Cos[c + d*x]]) + (b*(4*A + 3*C)*Sqrt[Cos[c + d*x]]*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(8*d) + (b*C*Cos[c + d
*x]^(5/2)*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(4*d) - (b*B*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x]^3)/(3*d*Sqrt[Cos[c
 + d*x]])

________________________________________________________________________________________

Rubi [A]  time = 0.118522, antiderivative size = 189, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 43, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.14, Rules used = {17, 3023, 2748, 2635, 8, 2633} \[ \frac{b x (4 A+3 C) \sqrt{b \cos (c+d x)}}{8 \sqrt{\cos (c+d x)}}+\frac{b (4 A+3 C) \sin (c+d x) \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)}}{8 d}-\frac{b B \sin ^3(c+d x) \sqrt{b \cos (c+d x)}}{3 d \sqrt{\cos (c+d x)}}+\frac{b B \sin (c+d x) \sqrt{b \cos (c+d x)}}{d \sqrt{\cos (c+d x)}}+\frac{b C \sin (c+d x) \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)}}{4 d} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[Cos[c + d*x]]*(b*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2),x]

[Out]

(b*(4*A + 3*C)*x*Sqrt[b*Cos[c + d*x]])/(8*Sqrt[Cos[c + d*x]]) + (b*B*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(d*Sqr
t[Cos[c + d*x]]) + (b*(4*A + 3*C)*Sqrt[Cos[c + d*x]]*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(8*d) + (b*C*Cos[c + d
*x]^(5/2)*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(4*d) - (b*B*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x]^3)/(3*d*Sqrt[Cos[c
 + d*x]])

Rule 17

Int[(u_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Dist[(a^(m + 1/2)*b^(n - 1/2)*Sqrt[b*v])/Sqrt[a*v]
, Int[u*v^(m + n), x], x] /; FreeQ[{a, b, m}, x] &&  !IntegerQ[m] && IGtQ[n + 1/2, 0] && IntegerQ[m + n]

Rule 3023

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (
f_.)*(x_)]^2), x_Symbol] :> -Simp[(C*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m + 1))/(b*f*(m + 2)), x] + Dist[1/(b*
(m + 2)), Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x], x]
, x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] &&  !LtQ[m, -1]

Rule 2748

Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*S
in[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]

Rule 2635

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Sin[c + d*x])^(n - 1))/(d*n),
x] + Dist[(b^2*(n - 1))/n, Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integer
Q[2*n]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 2633

Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[Expand[(1 - x^2)^((n - 1)/2), x], x], x
, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]

Rubi steps

\begin{align*} \int \sqrt{\cos (c+d x)} (b \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx &=\frac{\left (b \sqrt{b \cos (c+d x)}\right ) \int \cos ^2(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx}{\sqrt{\cos (c+d x)}}\\ &=\frac{b C \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)} \sin (c+d x)}{4 d}+\frac{\left (b \sqrt{b \cos (c+d x)}\right ) \int \cos ^2(c+d x) (4 A+3 C+4 B \cos (c+d x)) \, dx}{4 \sqrt{\cos (c+d x)}}\\ &=\frac{b C \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)} \sin (c+d x)}{4 d}+\frac{\left (b B \sqrt{b \cos (c+d x)}\right ) \int \cos ^3(c+d x) \, dx}{\sqrt{\cos (c+d x)}}+\frac{\left (b (4 A+3 C) \sqrt{b \cos (c+d x)}\right ) \int \cos ^2(c+d x) \, dx}{4 \sqrt{\cos (c+d x)}}\\ &=\frac{b (4 A+3 C) \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)} \sin (c+d x)}{8 d}+\frac{b C \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)} \sin (c+d x)}{4 d}+\frac{\left (b (4 A+3 C) \sqrt{b \cos (c+d x)}\right ) \int 1 \, dx}{8 \sqrt{\cos (c+d x)}}-\frac{\left (b B \sqrt{b \cos (c+d x)}\right ) \operatorname{Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d \sqrt{\cos (c+d x)}}\\ &=\frac{b (4 A+3 C) x \sqrt{b \cos (c+d x)}}{8 \sqrt{\cos (c+d x)}}+\frac{b B \sqrt{b \cos (c+d x)} \sin (c+d x)}{d \sqrt{\cos (c+d x)}}+\frac{b (4 A+3 C) \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)} \sin (c+d x)}{8 d}+\frac{b C \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)} \sin (c+d x)}{4 d}-\frac{b B \sqrt{b \cos (c+d x)} \sin ^3(c+d x)}{3 d \sqrt{\cos (c+d x)}}\\ \end{align*}

Mathematica [A]  time = 0.214395, size = 92, normalized size = 0.49 \[ \frac{(b \cos (c+d x))^{3/2} (24 (A+C) \sin (2 (c+d x))+48 A c+48 A d x+72 B \sin (c+d x)+8 B \sin (3 (c+d x))+3 C \sin (4 (c+d x))+36 c C+36 C d x)}{96 d \cos ^{\frac{3}{2}}(c+d x)} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[Cos[c + d*x]]*(b*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2),x]

[Out]

((b*Cos[c + d*x])^(3/2)*(48*A*c + 36*c*C + 48*A*d*x + 36*C*d*x + 72*B*Sin[c + d*x] + 24*(A + C)*Sin[2*(c + d*x
)] + 8*B*Sin[3*(c + d*x)] + 3*C*Sin[4*(c + d*x)]))/(96*d*Cos[c + d*x]^(3/2))

________________________________________________________________________________________

Maple [A]  time = 0.485, size = 114, normalized size = 0.6 \begin{align*}{\frac{6\,C \left ( \cos \left ( dx+c \right ) \right ) ^{3}\sin \left ( dx+c \right ) +8\,B\sin \left ( dx+c \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{2}+12\,A\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) +9\,C\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) +12\,A \left ( dx+c \right ) +16\,B\sin \left ( dx+c \right ) +9\,C \left ( dx+c \right ) }{24\,d} \left ( b\cos \left ( dx+c \right ) \right ) ^{{\frac{3}{2}}} \left ( \cos \left ( dx+c \right ) \right ) ^{-{\frac{3}{2}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)*cos(d*x+c)^(1/2),x)

[Out]

1/24/d*(b*cos(d*x+c))^(3/2)*(6*C*cos(d*x+c)^3*sin(d*x+c)+8*B*sin(d*x+c)*cos(d*x+c)^2+12*A*cos(d*x+c)*sin(d*x+c
)+9*C*cos(d*x+c)*sin(d*x+c)+12*A*(d*x+c)+16*B*sin(d*x+c)+9*C*(d*x+c))/cos(d*x+c)^(3/2)

________________________________________________________________________________________

Maxima [A]  time = 2.29419, size = 170, normalized size = 0.9 \begin{align*} \frac{24 \,{\left (2 \,{\left (d x + c\right )} b + b \sin \left (2 \, d x + 2 \, c\right )\right )} A \sqrt{b} + 8 \,{\left (b \sin \left (3 \, d x + 3 \, c\right ) + 9 \, b \sin \left (\frac{1}{3} \, \arctan \left (\sin \left (3 \, d x + 3 \, c\right ), \cos \left (3 \, d x + 3 \, c\right )\right )\right )\right )} B \sqrt{b} + 3 \,{\left (12 \,{\left (d x + c\right )} b + b \sin \left (4 \, d x + 4 \, c\right ) + 8 \, b \sin \left (\frac{1}{2} \, \arctan \left (\sin \left (4 \, d x + 4 \, c\right ), \cos \left (4 \, d x + 4 \, c\right )\right )\right )\right )} C \sqrt{b}}{96 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)*cos(d*x+c)^(1/2),x, algorithm="maxima")

[Out]

1/96*(24*(2*(d*x + c)*b + b*sin(2*d*x + 2*c))*A*sqrt(b) + 8*(b*sin(3*d*x + 3*c) + 9*b*sin(1/3*arctan2(sin(3*d*
x + 3*c), cos(3*d*x + 3*c))))*B*sqrt(b) + 3*(12*(d*x + c)*b + b*sin(4*d*x + 4*c) + 8*b*sin(1/2*arctan2(sin(4*d
*x + 4*c), cos(4*d*x + 4*c))))*C*sqrt(b))/d

________________________________________________________________________________________

Fricas [A]  time = 2.03715, size = 778, normalized size = 4.12 \begin{align*} \left [\frac{3 \,{\left (4 \, A + 3 \, C\right )} \sqrt{-b} b \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} - 2 \, \sqrt{b \cos \left (d x + c\right )} \sqrt{-b} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) + 2 \,{\left (6 \, C b \cos \left (d x + c\right )^{3} + 8 \, B b \cos \left (d x + c\right )^{2} + 3 \,{\left (4 \, A + 3 \, C\right )} b \cos \left (d x + c\right ) + 16 \, B b\right )} \sqrt{b \cos \left (d x + c\right )} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right )}{48 \, d \cos \left (d x + c\right )}, \frac{3 \,{\left (4 \, A + 3 \, C\right )} b^{\frac{3}{2}} \arctan \left (\frac{\sqrt{b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt{b} \cos \left (d x + c\right )^{\frac{3}{2}}}\right ) \cos \left (d x + c\right ) +{\left (6 \, C b \cos \left (d x + c\right )^{3} + 8 \, B b \cos \left (d x + c\right )^{2} + 3 \,{\left (4 \, A + 3 \, C\right )} b \cos \left (d x + c\right ) + 16 \, B b\right )} \sqrt{b \cos \left (d x + c\right )} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right )}{24 \, d \cos \left (d x + c\right )}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)*cos(d*x+c)^(1/2),x, algorithm="fricas")

[Out]

[1/48*(3*(4*A + 3*C)*sqrt(-b)*b*cos(d*x + c)*log(2*b*cos(d*x + c)^2 - 2*sqrt(b*cos(d*x + c))*sqrt(-b)*sqrt(cos
(d*x + c))*sin(d*x + c) - b) + 2*(6*C*b*cos(d*x + c)^3 + 8*B*b*cos(d*x + c)^2 + 3*(4*A + 3*C)*b*cos(d*x + c) +
 16*B*b)*sqrt(b*cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c))/(d*cos(d*x + c)), 1/24*(3*(4*A + 3*C)*b^(3/2)*a
rctan(sqrt(b*cos(d*x + c))*sin(d*x + c)/(sqrt(b)*cos(d*x + c)^(3/2)))*cos(d*x + c) + (6*C*b*cos(d*x + c)^3 + 8
*B*b*cos(d*x + c)^2 + 3*(4*A + 3*C)*b*cos(d*x + c) + 16*B*b)*sqrt(b*cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x +
 c))/(d*cos(d*x + c))]

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*cos(d*x+c))**(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)**2)*cos(d*x+c)**(1/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)*cos(d*x+c)^(1/2),x, algorithm="giac")

[Out]

Exception raised: NotImplementedError